<!--

-->
<template>
  <el-avatar :src="url" v-bind="$attrs" v-on="$listeners"></el-avatar>
</template>

<script>
export default {
  name: 'mc-avatar',
  data () {
    return {
      url:this.$magicaltool.request.util.wrapServerName(this.src,true)
    }
  },
  props:{
    //此处的value 就是父亲的v-model default:null 可以触发parent外为false
    'src' : {type:String,default:""},
  },
  watch:{

  },
  mounted () {

  },
  methods:{

  }
}
</script>

<style lang="scss">

</style>
